<template>
  <Tooltip :style="{'width':(width+'px')}" :max-width="width" :content="tip" theme="light" :transfer="true">{{text||tip}}</Tooltip>
</template>
<script>
  export default {
    name: 'comp-texttooltip',
    props: {
      tip: String,
      text: String,
      width: {
        type: Number,
        default: 200
      },
    }
  }
</script>